package com.example.nio.stream;

import java.util.ArrayList;
import java.util.List;

public class Test {

    public static void main(String[] args) {
        List<Node> NodeList;
        List<Node> MoteageNodeList;
        List<Node> SingleStepNodeList;
        List<Node> SingleStepMoteageNodeList;

        NodeList = new ArrayList<>();
        NodeList.add(new Node("收定金", 1));
        NodeList.add(new Node("确认协议", 2));
        NodeList.add(new Node("签协议", 3));
        NodeList.add(new Node("收尾款", 4));
        NodeList.add(new Node("确认交车", 5));

        MoteageNodeList = new ArrayList<>();
        MoteageNodeList.add(new Node("收定金", 1));
        MoteageNodeList.add(new Node("确认协议", 2));
        MoteageNodeList.add(new Node("签协议", 3));
        MoteageNodeList.add(new Node("收首付款", 4));
        MoteageNodeList.add(new Node("确认交车", 5));
        SingleStepNodeList = new ArrayList<>(NodeList);
        SingleStepNodeList.remove(0);
        SingleStepMoteageNodeList = new ArrayList<>(MoteageNodeList);
        SingleStepMoteageNodeList.remove(0);

        System.out.println(SingleStepMoteageNodeList.get(0) == MoteageNodeList.get(1));
        System.out.println(MoteageNodeList);

        System.out.println(new Integer(1).equals(1));
    }
}
class Node{
    private String name;//名称
    private Integer code;//node值


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Node() {
    }

    public Node(String name, Integer code) {
        this.name = name;
        this.code = code;
    }
}